package organization;

import java.io.Serializable;
import java.util.GregorianCalendar;

import person.Teacher;

public class Lesson implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 9L;
	private GregorianCalendar time;
	private Group group;
	private Teacher teacher;
	private String lessonName;
	private Auditorium audit;

	public Lesson (String name,Auditorium audit,Group group,Teacher teacher,GregorianCalendar time){
		lessonName = name;
		this.audit = audit;
		this.group = group;
		this.teacher = teacher;
		this.time = time;
		System.out.println("Lesson Created.");
	}
	public String getLessonName (){
		return lessonName;
	}
	public Group getGroup (){
		return group;
	}
	public int getAuditNumber (){
		return audit.getNumber();
	}
	public String getTeachName (){
		return teacher.getFirstAndScndName();
	}
	public GregorianCalendar getLessonTime (){
		return time;
	}
}
